Package org.apereo.cas.notifications.sms
Class SmsRequest
- java.lang.Object
-
- org.apereo.cas.notifications.sms.SmsRequest
-
public class SmsRequest extends java.lang.ObjectThis isSmsRequest.- Since:
- 6.6.0
-
-
Constructor Summary
Constructors Constructor Description SmsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Object>getAttributeValue()Gets the first attribute value from the principal.java.lang.StringgetRecipient()Gets recipients by first using the attribute from the principal.booleanhasAttributeValue()Has attribute value for the principal?booleanisSufficient()Whether this request contains sufficient data to proceed.
-
-
-
Method Detail
-
hasAttributeValue
public boolean hasAttributeValue()
Has attribute value for the principal?- Returns:
- the boolean
-
getAttributeValue
public java.util.Optional<java.lang.Object> getAttributeValue()
Gets the first attribute value from the principal.- Returns:
- the attribute value
-
getRecipient
public java.lang.String getRecipient()
Gets recipients by first using the attribute from the principal. If none found or empty value, uses the provided address.- Returns:
- the recipients
-
isSufficient
public boolean isSufficient()
Whether this request contains sufficient data to proceed.- Returns:
- true/false
-
-