in modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/SupportingToken.java [215:244]
public QName getName() {
//TODO Should we refactor this class ?? with a SuppotingTokenBase and sub classes
switch (type) {
case SPConstants.SUPPORTING_TOKEN_SUPPORTING:
return version == SPConstants.SP_V12 ? SP12Constants.SUPPORTING_TOKENS :
SP11Constants.SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_SIGNED:
return version == SPConstants.SP_V12 ? SP12Constants.SIGNED_SUPPORTING_TOKENS :
SP11Constants.SIGNED_SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_ENDORSING:
return version == SPConstants.SP_V12 ? SP12Constants.ENDORSING_SUPPORTING_TOKENS :
SP11Constants.ENDORSING_SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_SIGNED_ENDORSING:
return version == SPConstants.SP_V12 ? SP12Constants.SIGNED_ENDORSING_SUPPORTING_TOKENS:
SP11Constants.SIGNED_ENDORSING_SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_ENCRYPTED:
return SP12Constants.ENCRYPTED_SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_SIGNED_ENCRYPTED:
return SP12Constants.SIGNED_ENCRYPTED_SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_ENDORSING_ENCRYPTED:
return SP12Constants.ENDORSING_ENCRYPTED_SUPPORTING_TOKENS;
case SPConstants.SUPPORTING_TOKEN_SIGNED_ENDORSING_ENCRYPTED:
return SP12Constants.SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS;
default:
return null;
}
}