}
wsDocInfo = new WSDocInfo(document);
switch (keyIdentifierType) {
case WSConstants.BST_DIRECT_REFERENCE:
Reference ref = new Reference(document);
ref.setURI((new StringBuilder()).append("#").append(tokenUri).toString());
bstToken = new KerberosSecurity(document);
((KerberosSecurity) bstToken).setKerberosToken(tokenData);
ref.setValueType(bstToken.getValueType());
secRef.setReference(ref);
bstToken.setID(tokenUri);
wsDocInfo.setBst(bstToken.getElement());
break;