/**
  * @param algorithmName
  * @return null if algorithmName is empty or null
  */
 public static JWSAlgorithmEmbed getForAlgorithmName(String algorithmName) {
   JWSAlgorithmEmbed ent = new JWSAlgorithmEmbed();
   ent.setAlgorithmName(algorithmName);
   if (ent.getAlgorithm() == null) {
     return null;
   } else {
     return ent;
   }
 }
 @Transient
 public JWSAlgorithm getTokenEndpointAuthSigningAlg() {
   if (tokenEndpointAuthSigningAlg != null) {
     return tokenEndpointAuthSigningAlg.getAlgorithm();
   } else {
     return null;
   }
 }
 @Transient
 public JWSAlgorithm getIdTokenSignedResponseAlg() {
   if (idTokenSignedResponseAlg != null) {
     return idTokenSignedResponseAlg.getAlgorithm();
   } else {
     return null;
   }
 }
 @Transient
 public JWSAlgorithm getUserInfoSignedResponseAlg() {
   if (userInfoSignedResponseAlg != null) {
     return userInfoSignedResponseAlg.getAlgorithm();
   } else {
     return null;
   }
 }
 @Transient
 public JWSAlgorithm getRequestObjectSigningAlg() {
   if (requestObjectSigningAlg != null) {
     return requestObjectSigningAlg.getAlgorithm();
   } else {
     return null;
   }
 }
 @Override
 public JWSAlgorithmEmbed deserialize(
     JsonElement json, Type typeOfT, JsonDeserializationContext context)
     throws JsonParseException {
   if (json.isJsonPrimitive()) {
     return JWSAlgorithmEmbed.getForAlgorithmName(json.getAsString());
   } else {
     return null;
   }
 }