Class PolicyIdentity
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.PolicyIdentity
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PolicyIdentityBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PolicyIdentity extends Object implements io.fabric8.kubernetes.api.builder.Editable<PolicyIdentityBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
PolicyIdentity defines image identity the signature claims about the image. When omitted, the default matchPolicy is "MatchRepoDigestOrExact".- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyIdentity()No args constructor for use in serializationPolicyIdentity(PolicyMatchExactRepository exactRepository, String matchPolicy, PolicyMatchRemapIdentity remapIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyIdentityBuilderedit()Map<String,Object>getAdditionalProperties()PolicyMatchExactRepositorygetExactRepository()PolicyIdentity defines image identity the signature claims about the image.StringgetMatchPolicy()matchPolicy is a required filed specifies matching strategy to verify the image identity in the signature against the image scope.PolicyMatchRemapIdentitygetRemapIdentity()PolicyIdentity defines image identity the signature claims about the image.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetExactRepository(PolicyMatchExactRepository exactRepository)PolicyIdentity defines image identity the signature claims about the image.voidsetMatchPolicy(String matchPolicy)matchPolicy is a required filed specifies matching strategy to verify the image identity in the signature against the image scope.voidsetRemapIdentity(PolicyMatchRemapIdentity remapIdentity)PolicyIdentity defines image identity the signature claims about the image.PolicyIdentityBuildertoBuilder()
-
-
-
Constructor Detail
-
PolicyIdentity
public PolicyIdentity()
No args constructor for use in serialization
-
PolicyIdentity
public PolicyIdentity(PolicyMatchExactRepository exactRepository, String matchPolicy, PolicyMatchRemapIdentity remapIdentity)
-
-
Method Detail
-
getExactRepository
public PolicyMatchExactRepository getExactRepository()
PolicyIdentity defines image identity the signature claims about the image. When omitted, the default matchPolicy is "MatchRepoDigestOrExact".
-
setExactRepository
public void setExactRepository(PolicyMatchExactRepository exactRepository)
PolicyIdentity defines image identity the signature claims about the image. When omitted, the default matchPolicy is "MatchRepoDigestOrExact".
-
getMatchPolicy
public String getMatchPolicy()
matchPolicy is a required filed specifies matching strategy to verify the image identity in the signature against the image scope. Allowed values are "MatchRepoDigestOrExact", "MatchRepository", "ExactRepository", "RemapIdentity". When omitted, the default value is "MatchRepoDigestOrExact". When set to "MatchRepoDigestOrExact", the identity in the signature must be in the same repository as the image identity if the image identity is referenced by a digest. Otherwise, the identity in the signature must be the same as the image identity. When set to "MatchRepository", the identity in the signature must be in the same repository as the image identity. When set to "ExactRepository", the exactRepository must be specified. The identity in the signature must be in the same repository as a specific identity specified by "repository". When set to "RemapIdentity", the remapIdentity must be specified. The signature must be in the same as the remapped image identity. Remapped image identity is obtained by replacing the "prefix" with the specified "signedPrefix" if the the image identity matches the specified remapPrefix.
-
setMatchPolicy
public void setMatchPolicy(String matchPolicy)
matchPolicy is a required filed specifies matching strategy to verify the image identity in the signature against the image scope. Allowed values are "MatchRepoDigestOrExact", "MatchRepository", "ExactRepository", "RemapIdentity". When omitted, the default value is "MatchRepoDigestOrExact". When set to "MatchRepoDigestOrExact", the identity in the signature must be in the same repository as the image identity if the image identity is referenced by a digest. Otherwise, the identity in the signature must be the same as the image identity. When set to "MatchRepository", the identity in the signature must be in the same repository as the image identity. When set to "ExactRepository", the exactRepository must be specified. The identity in the signature must be in the same repository as a specific identity specified by "repository". When set to "RemapIdentity", the remapIdentity must be specified. The signature must be in the same as the remapped image identity. Remapped image identity is obtained by replacing the "prefix" with the specified "signedPrefix" if the the image identity matches the specified remapPrefix.
-
getRemapIdentity
public PolicyMatchRemapIdentity getRemapIdentity()
PolicyIdentity defines image identity the signature claims about the image. When omitted, the default matchPolicy is "MatchRepoDigestOrExact".
-
setRemapIdentity
public void setRemapIdentity(PolicyMatchRemapIdentity remapIdentity)
PolicyIdentity defines image identity the signature claims about the image. When omitted, the default matchPolicy is "MatchRepoDigestOrExact".
-
edit
public PolicyIdentityBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PolicyIdentityBuilder>
-
toBuilder
public PolicyIdentityBuilder toBuilder()
-
-