Package io.jans.as.model.uma.persistence
Class UmaPermission
- java.lang.Object
-
- io.jans.as.model.uma.persistence.UmaPermission
-
- All Implemented Interfaces:
java.io.Serializable
public class UmaPermission extends java.lang.Object implements java.io.Serializable
UMA permission- Version:
- 2.0, date: 17/05/2017
- Author:
- Yuriy Zabrovarnyy
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PCT
-
Constructor Summary
Constructors Constructor Description UmaPermission()
UmaPermission(java.lang.String resourceId, java.util.List<java.lang.String> scopes, java.lang.String ticket, java.lang.String configurationCode, Pair<java.util.Date,java.lang.Integer> expirationDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkExpired()
void
checkExpired(java.util.Date now)
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.String>
getAttributes()
java.lang.String
getConfigurationCode()
java.lang.String
getDn()
java.util.Date
getExpirationDate()
java.lang.String
getResourceId()
java.util.List<java.lang.String>
getScopeDns()
java.lang.String
getStatus()
java.lang.String
getTicket()
java.lang.Integer
getTtl()
int
hashCode()
boolean
isDeletable()
boolean
isValid()
void
resetTtlFromExpirationDate()
void
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
void
setConfigurationCode(java.lang.String configurationCode)
void
setDeletable(boolean deletable)
void
setDn(java.lang.String dn)
void
setExpirationDate(java.util.Date expirationDate)
void
setResourceId(java.lang.String resourceId)
void
setScopeDns(java.util.List<java.lang.String> scopeDns)
void
setStatus(java.lang.String status)
void
setTicket(java.lang.String ticket)
void
setTtl(java.lang.Integer ttl)
java.lang.String
toString()
-
-
-
Field Detail
-
PCT
public static final java.lang.String PCT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UmaPermission
public UmaPermission()
-
UmaPermission
public UmaPermission(java.lang.String resourceId, java.util.List<java.lang.String> scopes, java.lang.String ticket, java.lang.String configurationCode, Pair<java.util.Date,java.lang.Integer> expirationDate)
-
-
Method Detail
-
getTtl
public java.lang.Integer getTtl()
-
setTtl
public void setTtl(java.lang.Integer ttl)
-
resetTtlFromExpirationDate
public void resetTtlFromExpirationDate()
-
getDn
public java.lang.String getDn()
-
setDn
public void setDn(java.lang.String dn)
-
isDeletable
public boolean isDeletable()
-
setDeletable
public void setDeletable(boolean deletable)
-
checkExpired
public void checkExpired()
-
checkExpired
public void checkExpired(java.util.Date now)
-
isValid
public boolean isValid()
-
getStatus
public java.lang.String getStatus()
-
setStatus
public void setStatus(java.lang.String status)
-
getConfigurationCode
public java.lang.String getConfigurationCode()
-
setConfigurationCode
public void setConfigurationCode(java.lang.String configurationCode)
-
getTicket
public java.lang.String getTicket()
-
setTicket
public void setTicket(java.lang.String ticket)
-
getExpirationDate
public java.util.Date getExpirationDate()
-
setExpirationDate
public void setExpirationDate(java.util.Date expirationDate)
-
getResourceId
public java.lang.String getResourceId()
-
setResourceId
public void setResourceId(java.lang.String resourceId)
-
getScopeDns
public java.util.List<java.lang.String> getScopeDns()
-
setScopeDns
public void setScopeDns(java.util.List<java.lang.String> scopeDns)
-
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
-
setAttributes
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-