com.adobe.granite.auth.saml.model.NameIdPolicy Maven / Gradle / Ivy
/*************************************************************************
*
* ADOBE CONFIDENTIAL
* __________________
*
* Copyright 2012 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
package com.adobe.granite.auth.saml.model;
public class NameIdPolicy {
// optional
private String format;
private String spNameQualifier;
private boolean allowCreate;
private boolean hasAllowCreate;
public NameIdPolicy() {
super();
this.hasAllowCreate = false;
}
public String getFormat() {
return format;
}
public void setFormat(String format) {
this.format = format;
}
public String getSpNameQualifier() {
return spNameQualifier;
}
public void setSpNameQualifier(String spNameQualifier) {
this.spNameQualifier = spNameQualifier;
}
public boolean isAllowCreate() {
return allowCreate;
}
public void setAllowCreate(boolean allowCreate) {
this.hasAllowCreate = true;
this.allowCreate = allowCreate;
}
public boolean hasAllowCreate() {
return this.hasAllowCreate;
}
public boolean hasSpNameQualifier() {
return null != spNameQualifier && spNameQualifier.length() > 0;
}
public boolean hasFormat() {
return (null != format && format.length() > 0);
}
}