public class ScpCfPrincipal extends DefaultPrincipal
Principal
interface for SAP Cloud Platform Cloud Foundry.Constructor and Description |
---|
ScpCfPrincipal()
Creates a
ScpCfPrincipal with an empty principal identifier, no authorizations, and no attributes. |
ScpCfPrincipal(String principalId,
Set<Authorization> authorizations,
Map<String,PrincipalAttribute> attributes)
Creates a new
ScpCfPrincipal . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
getAttribute, getAttributes, getAuthorizations, getPrincipalId
public ScpCfPrincipal(@Nonnull String principalId, @Nonnull Set<Authorization> authorizations, @Nonnull Map<String,PrincipalAttribute> attributes)
ScpCfPrincipal
.principalId
- The identifier of the principal.authorizations
- The authorizations of the principal.attributes
- The attributes of the principal.public ScpCfPrincipal()
ScpCfPrincipal
with an empty principal identifier, no authorizations, and no attributes.public boolean equals(@Nullable Object o)
equals
in class DefaultPrincipal
protected boolean canEqual(@Nullable Object other)
canEqual
in class DefaultPrincipal
public int hashCode()
hashCode
in class DefaultPrincipal
@Nonnull public String toString()
toString
in class DefaultPrincipal
Copyright © 2021 SAP SE. All rights reserved.